package com.dgut.usermodule.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.dgut.usermodule.entity.User;

public interface UserService {
	List<User> findAll();
	Page<User> findPage(Specification<User> spec,Pageable pageable); 
	User findOne(Long id);
	User findByName(String name);
	String save(User user);
	String update(User user);
	boolean delete(Long id);
}
